package com.lhj.library.application.convert;

import com.lhj.library.application.dto.BookDTO;
import com.lhj.library.application.dto.RecordDTO;
import com.lhj.library.common.entity.PageResult;
import com.lhj.library.domain.entity.BookBO;
import com.lhj.library.domain.entity.RecordBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface RecordDtoConverter {
    RecordDtoConverter INSTANCE = Mappers.getMapper(RecordDtoConverter.class);

    RecordBO convertDtoToRecordBo(RecordDTO recordDTO);

    PageResult<RecordDTO> convertBoToDtoPage(PageResult<RecordBO> boPageResult);



}
